473,433 Members | 1,960 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,433 software developers and data experts.

cascademenu.js problem with Mozilla vs IE

I'm using the cascademenu.js file from

http://javascript.internet.com/navig...cade-menu.html

It works fine with IE but nothing happens with Mozilla. Specifically,
when I open the Javascript Console with Mozilla, I get "menuBar is not
defined".

Can anybody tell me why?

Alternatively, can anybody suggest an equivalent menu script that does
work with Mozilla and IE?

Thanks!

Jul 20 '05 #1
2 3002
Curtis Rempel <cu****@telus.net> writes:
I'm using the cascademenu.js file from

http://javascript.internet.com/navig...cade-menu.html .... I get "menuBar is not defined". Can anybody tell me why?
They are expecting the element with id="menuBar" to be available as a
global variable of that name. IE is one of the only browsers that makes
it available like that. The correct method of accessing such an element
is with document.getElementById("menuBar").

That means that the script is written specifically to IE. Making it work
in other browsers can be problematic. I recommend finding another.
Alternatively, can anybody suggest an equivalent menu script that does
work with Mozilla and IE?


.... but I'm not familiar with one.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
Lasse Reichstein Nielsen wrote:
Curtis Rempel <cu****@telus.net> writes:

I'm using the cascademenu.js file from

http://javascript.internet.com/navig...cade-menu.html


...
I get "menuBar is not defined".


Can anybody tell me why?

They are expecting the element with id="menuBar" to be available as a
global variable of that name. IE is one of the only browsers that makes
it available like that. The correct method of accessing such an element
is with document.getElementById("menuBar").

That means that the script is written specifically to IE. Making it work
in other browsers can be problematic. I recommend finding another.

Alternatively, can anybody suggest an equivalent menu script that does
work with Mozilla and IE?

... but I'm not familiar with one.

/L


Ah yes, another case of the M$ "embrace and extend" mantra. Sigh.

Thanks for the info.

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Felix Natter | last post by:
hi, I am having a problem with colspan's in Mozilla (Netscape). with my understanding of colspan the following table is supposed to look like that: IE6: ...
9
by: Johannes Koch | last post by:
Hi, <http://www.fit.fraunhofer.de/~koch/float_prob/> Is there a way to make Mozilla not to push the red image on top of the menu on the left when the viewport's width is very small? Opera,...
20
by: Arne | last post by:
During testing <div style="overflow:auto;"> in CSS I noticed the mousewheel would work in Mozilla only after I made a <a href="#">some text</a> link and clicked on that, within the div. It...
8
by: Nicolás Lichtmaier | last post by:
Hi, some time ago I've written an article about this issue. It explain some differences in Explorer's and Mozilla's JavaScript/DOM. It has recently changed its URL, This is the new one: ...
6
by: GD | last post by:
I'm using a script that works great on IE, but not on mozilla. the original one worked also on N4, but i'd like it to be funcional with mozilla. this is the orginal script: ...
0
by: autogoor | last post by:
I want to put a java Applet in a jsp page. Here is what I used: <jsp:plugin type="applet" code="mypackage.myApplet" width="450" height="350" > <jsp:params>...</jsp:params>
4
by: aure_bobo | last post by:
Hi all, I'm currently developping a web app, and this one must be compatible with IE and Mozilla Firefox. In this webapp, I would like to launch automatically a anchor link (href) with a...
8
by: Clément | last post by:
Hi! I am currently developping a user interface with Ajax/C#/.net. And I am facing a problem with Mozilla, and Firefox. I use the function innerHTML to load a Web UserControl into a div, this...
20
by: Thorsten Kampe | last post by:
Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.